package core

import "context"

type EurekaRegistrar struct {
}

func NewEurekaRegistrar() (*EurekaRegistrar, error) {
	return nil, nil
}

func (registrar *EurekaRegistrar) Close() {
	if registrar == nil {
		return
	}

}
func (registrar *EurekaRegistrar) Register(ctx context.Context, node *Node) error {

	return nil
}
func (registrar *EurekaRegistrar) Deregister(ctx context.Context, node *Node) error {
	return nil
}

//func (adapter *EurekaAdapter) Connect(conf *ClusterConf) (err error) {
//	fmt.Println("eureka connected")
//	return err
//}
//
//func (adapter *EurekaAdapter) Register(nodeName string, bindAddr string, watch RegisterWatch) (nodeId uint32, err error) {
//
//	return
//}
//
//func (adapter *EurekaAdapter) DeRegister() {
//
//}
//func (adapter *EurekaAdapter) GetNodes() (nodes []*Node, err error) {
//	return
//}
